#ifndef MYCOMPLEX_H_
#define MYCOMPLEX_H_

typedef float real;

/* 复数结构体 */
struct myComplexStr
{
    real Re;
    real Im;
};
typedef struct myComplexStr myComplex;

/* 复数构造 */
myComplex myComplex_Make(real rr, real ii);
/* 复数加 */
myComplex *myComplex_Add(myComplex *ret, myComplex *a, myComplex *b);
/* 复数减 */
myComplex *myComplex_Sub(myComplex *ret, myComplex *a, myComplex *b);
/* 复数乘 */
myComplex *myComplex_Mul(myComplex *ret, myComplex *a, myComplex *b);
/* 复数除 */
myComplex *myComplex_Div(myComplex *ret, myComplex *a, myComplex *b);
/* 复数模 */
real myComplex_Modulus(myComplex *c);

#endif
